cmake_minimum_required(VERSION 2.6)
project(pcm2freq CXX)

#BOOST conf
   set(LIB C:/DEV_ROOT/usr/lib )
   set(Boost_ADDITIONAL_VERSIONS "1.41" "1.41.0")
   #set(Boost_USE_STATIC_LIBS   ON)
   set(Boost_USE_MULTITHREADED ON)
   set(BOOST_INCLUDEDIR ${LIB}/boost/include/boost-1_41)
   set(BOOST_LIBRARYDIR ${LIB}/boost/lib)
   find_package( Boost 1.41.0 COMPONENTS thread )


   if(Boost_FOUND)
	  add_definitions( -DBOOST_LIB_DIAGNOSTIC )
	  #add_definitions( -DBOOST_ALL_DYN_LINK )
      include_directories(${Boost_INCLUDE_DIRS})
   endif()

#sources
set(pcm2freq_SRCS winfunctions.cpp)
set(pcm2freq_SRCS ${pcm2freq_SRCS} winfunctions.h )

add_library(pcm2freq STATIC ${pcm2freq_SRCS})

#install
install(TARGETS pcm2freq EXPORT pcm2freq DESTINATION lib)
install(FILES winfunctions.h DESTINATION include)
